import React from 'react'
import { BrowserRouter, Route } from 'react-router-dom'

import App from '../App.js'
import Home from '../component/Home'
import Menu from '../component/Menu'

export default class Root extends React.Component {
  render () {
    return (
      <BrowserRouter>
        <div>
          <Route exact path="/" component={Home}></Route>
          <Route path="/login" render={() => <div>login</div>}></Route>
          <Menu/>
        </div>
      </BrowserRouter>
    )
  }
}